<template>
  <div>
    <!-- NavBar 组件：只需提供 title 标题 -->
    <van-nav-bar :title="title" fixed />
  </div>
</template>
<script>
export default {
  name: 'NavBar',
  props: {
    title: {
      type: String,
      default: '黑马头条'
    }
  }
}
</script>
